package com.example.jetpackdemo.viewmodel

import androidx.lifecycle.LiveData
import com.example.jetpackdemo.db.data.Shoe
import com.example.jetpackdemo.db.repository.ShoeRepository

class FavouriteModel constructor(shoeRepository: ShoeRepository,userId:Long) {

    //鞋子集合的观察类
    val shoes:LiveData<List<Shoe>> = shoeRepository.getShoesByUserId(userId)


}